import { ecs } from "./core/ecs/ECS";
import { CommonUtil } from "./module/common/CommonUtil";
import { dev } from "./module/config/Config";
import { GateService, GateServiceRootSystem } from "./service/gate/GateService";


/** 网关服务器对象 */
export var gs: GateService = null!

function main() {
    dev();

    CommonUtil.init(new GateServiceRootSystem());

    gs = ecs.getEntity<GateService>(GateService);
    gs.start()
}

main();